<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>登录页面</title>
</head>
<body>
<div>
        <div>用户名:<input id="username"/></div>
        <div>密码:<input id="password"/></div>
        <button  id="btnLogin">登录</button>
</div>
</body>
<script>

 document.getElementById('btnLogin').addEventListener('click',function () {
     var username = document.getElementById('username').value;
     var password = document.getElementById('password').value;

     window.location.href = '/check?username='+username+"&&password="+password;
 })
</script>
</html>
